package com.dmj.sqldsl.executor.visitor;

import com.dmj.sqldsl.model.Limit;

public class PostgresqlQueryModelVisitor extends QueryModelVisitor {

  @Override
  protected String visit(Limit limit) {
    params.add(new Parameter(limit.getSize()));
    params.add(new Parameter(limit.getOffset()));
    return " limit ? offset ?";
  }
}
